#ifndef __H_MY_DEF_H__
#define __H_MY_DEF_H__

#include "cmd.h"
#include "Packet.h"
#include "globalDefine.h"

struct stFlowItem
{
	int m_act;
	int64 m_delt;
	int64 m_amount;
	int64 m_coin;
	_u64_ m_time;
	unsigned int m_userseq;
	stFlowItem():m_act(0), m_delt(0), m_amount(0), m_coin(0), m_time(0), m_userseq(0)
	{
	}
	stFlowItem(const int act, const int64 delt, const int64 amount, const int64 coin, const _u64_ time, const unsigned int userseq)
	{
		m_act = act;
		m_delt = delt;
		m_amount = amount;
		m_coin = coin;
		m_time = time;
		m_userseq = userseq;
	}
	stFlowItem(const stFlowItem& other)
	{
		m_act = other.m_act;
		m_delt = other.m_delt;
		m_amount = other.m_amount;
		m_coin = other.m_coin;
		m_time = other.m_time;
		m_userseq = other.m_userseq;
	}

	stFlowItem& operator = (const stFlowItem& other)
	{
		if (&other == this)
			return *this;

		m_act = other.m_act;
		m_delt = other.m_delt;
		m_amount = other.m_amount;
		m_coin = other.m_coin;
		m_time = other.m_time;
		m_userseq = other.m_userseq;

		return *this;
	}
};

#endif